import {
  applyPurposeOptions,
  companyTypeOptions,
  professionalFieldOptions,
} from "@/utils";

export const registryForm: FormItem[] = [
  {
    label: "邮箱账号",
    key: "email",
    type: "input",
    props: {
      autocomplete: "off",
    },
  },
  {
    label: "登录密码",
    key: "pwd",
    type: "input",
    props: {
      type: "password",
      autocomplete: "new-password",
    },
  },
  {
    label: "确认密码",
    key: "confirmPwd",
    type: "input",
    props: {
      type: "password",
      autocomplete: "new-password",
    },
  },
  {
    label: "姓名",
    key: "name",
    type: "input",
    props: {
      autocomplete: "name",
    },
  },
  {
    label: "电话",
    key: "phone",
    type: "input",
  },
  {
    label: "单位名称",
    key: "companyName",
    type: "input",
  },
  {
    label: "单位类型",
    key: "companyType",
    type: "select",
    props: {
      options: companyTypeOptions,
    },
  },
  {
    label: "单位地址",
    key: "companyAddress",
    type: "input",
  },
  {
    label: "专业领域",
    key: "professionalField",
    type: "select",
    props: {
      options: professionalFieldOptions,
    },
  },
  {
    label: "证书",
    key: "credentials",
    type: "upload",
    props: {
      listType: "picture-card",
      multiple: true,
    },
  },
  {
    label: "申请目的",
    key: "applyPurpose",
    type: "select",
    props: {
      mode: "multiple",
      placeholder: "多选，请选择申请目的",
      options: applyPurposeOptions,
    },
  },
];
